package Practice05.test4;

public class Employee {

    protected String name;
    protected int number;
    protected int salary;

    public Employee(String name, int number, int salary) {
        this.name = name;
        this.number = number;
        this.salary = salary;
    }

    public void printInfo(){
        System.out.println("员工姓名："+name+"员工编号："+number+"薪水："+salary);
    }

    public void raiseSalary(double proportion){
        salary *= 1+proportion;
    }
}
